package com.technology.education.data.model

/**
 *@author:create by BZY
 *Date: 2022/3/17 15
 * 积分兑换商品订单详情
 */
data class GoodsOrderDetailModel(
    val address: String,
    val city: String,
    val district: String?,
    val id: String,
    val name: String,
    val payTime: String,
    val phone: String,
    val placeTime: String,
    val pointGoodsAmount: Int,
    val pointGoodsDescription: String,
    val pointGoodsId: String,
    val pointGoodsImage: String,
    val pointGoodsName: String,
    val pointGoodsNum: Int,
    val pointGoodsPrice: Int,
    val pointOrderState: String,
    val province: String,
    val sendTime: String?
) {
    val addressStr: String get() = "$province$city$district$address"

    /**
     *  1待发货 2已发货
     */
    val statusStr: String
        get() = when (pointOrderState) {
            "1" -> "待发货"
            "2" -> "已发货"
            else -> "代发货"
        }
}